package com.esteel.settlement.pa.packet;

import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 请求包：交易网－> 监管系统 查询时间段会员出入金流水信息 zhouwentong
 */
@XmlRootElement(name = "Result")
@XmlAccessorType(XmlAccessType.FIELD)
public class QueryMemberInOutMoneyFlowByTimePB1325 extends PaPacket {

	private static final long serialVersionUID = -9029569050074297101L;
	// 资金汇总账号
	@XmlElement(name = "SupAcctId")
	@Length(max = 32)
	@NotEmpty
	private String supAcctId;
	// 交易网流水号 若为空则返回全部
	@XmlElement(name = "OrigThirdLogNo")
	@Length(max = 20)
	private String origThirdLogNo;
	// 开始日期
	@XmlElement(name = "BeginDate")
	@DateTimeFormat(pattern = "yyyyMMdd")
	private Date beginDate;
	// 结束日期
	@XmlElement(name = "EndDate")
	@DateTimeFormat(pattern = "yyyyMMdd")
	private Date endDate;
	// 第几页
	// 起始值为1，每次最多返回20条记录，第二页返回的记录数为第21至40条记录，第三页为41至60条记录，顺序均按照建立时间的先后
	@XmlElement(name = "PageNum")
	private int pageNum;
	
	
	String flag;
	
	

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public String getSupAcctId() {
		return supAcctId;
	}

	public String getOrigThirdLogNo() {
		return origThirdLogNo;
	}

	public Date getBeginDate() {
		return beginDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public int getPageNum() {
		return pageNum;
	}

	public void setSupAcctId(String supAcctId) {
		this.supAcctId = supAcctId;
	}

	public void setOrigThirdLogNo(String origThirdLogNo) {
		this.origThirdLogNo = origThirdLogNo;
	}

	public void setBeginDate(Date beginDate) {
		this.beginDate = beginDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}

	@Override
	protected String[] order() {
		String[] args = { "supAcctId", "origThirdLogNo", "beginDate", "endDate", "pageNum", "reserve" };
		return args;
	}

	@Override
	protected String tranFunc() {
		return "1325";
	}

}
